package org.galaxyworld.flycode.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties("application.model")
public class ModelConfig {

    private static String template;

    private static String packageName;

    private static String prefix;

    private static boolean includePrefix;

    private static String keywordPostfix;

    public static String getTemplate() {
        return String.format("%s.tpl", template);
    }

    public void setTemplate(String template) {
        ModelConfig.template = template;
    }

    public static String getPackageName() {
        return packageName;
    }

    public void setPackageName(String packageName) {
        ModelConfig.packageName = packageName;
    }

    public static String getPrefix() {
        return prefix;
    }

    public void setPrefix(String prefix) {
        ModelConfig.prefix = prefix;
    }

    public static boolean isIncludePrefix() {
        return includePrefix;
    }

    public void setIncludePrefix(boolean includePrefix) {
        ModelConfig.includePrefix = includePrefix;
    }

    public static String getKeywordPostfix() {
        return keywordPostfix;
    }

    public void setKeywordPostfix(String keywordPostfix) {
        ModelConfig.keywordPostfix = keywordPostfix;
    }
}
